package com.cabinet.em;
/**
 * 付款方式枚举类
 * @author lvzf
 * 2015年11月11日 上午9:13:17
 */
public enum PaymentMarkEnum {
	payafter("货到付款","payafter"),
	alipay("支付宝","alipay"),
	alipay_wap("手机网页支付宝","alipay_wap"),
	tenpay("财付通","tenpay"),
	bill("快钱","bill"),
	chinabank("手机网页支付宝","chinabank"),
	outline("线下支付","outline"),
	balance("预存款支付","balance"),
	paypal("paypal","paypal");
 
     // 成员变量
	private String name;
	private String value;

	// 构造方法
	private PaymentMarkEnum(String name, String value) {
		this.name = name;
		this.value = value;
	}

	// 普通方法
	public static String getName(String value) {
		for (PaymentMarkEnum c : PaymentMarkEnum.values()) {
			if (c.getValue().equalsIgnoreCase(value)) {
				return c.name;
			}
		}
		return null;
	}

	// get set 方法
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
